﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Backend.Data.Managers;
using Backend.Data.Entities;

namespace Backend.Data.Tests.Managers
{
    [TestClass]
    public class StateManagerTest
    {

        [TestMethod]
        public void TestStateCreate()
        {

            //var t = StateManager.getStates().FirstOrDefault();
            State d = new State()
            {
                Name ="State01",
                Abbreviation ="ABR",
            };
            State dB = StateManager.Create(d);
            Assert.IsTrue(dB.Id != Guid.Empty);
        }

        [TestMethod]
        public void TestStateGetAll()
        {
            var lista = StateManager.GetAll();
            Assert.IsTrue(lista.Count>0);
        }
    }
}
